package sort;

import java.util.*;

public class SortDemo {
    public static void main(String[] args) {
        Sort sort = new QuickSort();
        Comparable[] testArray = new Comparable[15];
        Random rGen = new Random();
        int i = 0;
        while (i < testArray.length)
            testArray[i++] = rGen.nextInt(testArray.length);
        System.out.println("Original sequence: ");
        Arrays.stream(testArray).forEach(System.out::println);
        sort.sort(testArray);
        System.out.println("Sorted sequence: ");
        Arrays.stream(testArray).forEach(System.out::println);
    }
}